import Main from '../views/Main.vue'
import Home from '../views/Home.vue'
import Login from '../views/Login.vue'
import Register from '../views/Register.vue'
import Discover from "@/views/Discover.vue"
import List from '../views/List.vue'
import Person from '../views/Personal.vue'
import Shopping from '../views/Shopping.vue'
import Search from '../views/Search.vue'
export default [
    {
        path: '/login',
        component: Login
    },
    {
        path: '/discover',
        component:Discover
    },
    {
        path: '/register',
        component: Register
    },
    {
        path:'/shopping',
        component:Shopping
    },
    {
        path:'/search',
        component:Search
    },

    {
        path: '/main',
        alias: '/',
        component: Main,
        children: [
            {
                path: '/',
                redirect:'/home' 
            },
            {
                path: 'home',
                component: Home
            },
            {
                path:'list',
                component:List
            },
            {
                path:'personal',
                component:Person
            }
        ]
    },
]